﻿<form id="pagerForm" method="post" action="/?g=admin&m=news&a=list">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="{$Pager.PageSize}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
	<input type="hidden" name="kwd" value="{$S_kwd}" />
	<input type="hidden" name="addtime" value="{$S_adt}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="/?g=admin&m=news&a=list" method="post">
		<input type="hidden" name="numPerPage" value="{$Pager.PageSize}" />
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					关键词：<input type="text" name="kwd" value="{$S_kwd}" />
				</td>
				<td>
					添加日期：<input type="text" name="addtime" class="date" readonly="true" value="{$S_adt}" />
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<!--
				<li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
				-->
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/?g=admin&m=news&a=add" target="navTab" title="添加新闻内容" width="400" height="240"><span>添加</span></a></li>
			<li><a class="delete" href="/?g=admin&m=news&a=save&t=del&id={id}" target="ajaxTodo" title="确定要删除吗?" warn="请至少选择一个新闻"><span>删除</span></a></li>
			<li><a class="edit" href="/?g=admin&m=news&a=edt&id={id}" title="编辑新闻内容" target="navTab" warn="请选择一个新闻"><span>修改</span></a></li>
			<li class="line">line</li>
			<!--<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>-->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th align="center" width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="80">排序</th>
                <th width="150">标题</th>
                <th width="80">所属类型</th>
                <th width="80">图片新闻</th>
                <th align="center" width="80">添加时间</th>
                <th width="80">添加人</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody>
			<record type="rs" name="$rs" length="$Pager.PageSize" close="1" key="c">
             <tr target="id" rel="{$rs(~id~)}">
              <td><input name="ids" value="{$rs(~id~)}" type="checkbox"></td>
              <td>{$rs("px")}</td>
              <td><a href="{$U(~/index.asp?m=news&a=read&id=~&rs(~id~),5)}" target="_blank">{$rs("title")}</a></td>
              <td>{$rs("cid")}</td>
              <td>{$rs("img")}--{$c}</td>
              <td>{$rs("addtime")}</td>
			  <td>{$rs("editor")}</td>
              <td class="actions">
			   <span class="place"></span>
			   <a href='/?g=admin&m=news&a=edt&id={$rs("id")}' target="navTab" title="编辑新闻内容" class="btn_edt">编辑</a>
			   <a href='/?g=admin&m=news&a=save&t=del&id={$rs("id")}' target="ajaxTodo" title="删除新闻?" class="btn_del">删除</a>
			  </td>
             </tr>
             </record>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<eq name="$Pager.PageSize" type="num" value="10">
				<option value="10" selected="selected">10</option>
				<else/>
				<option value="10">10</option>
				</eq>
				<eq name="$Pager.PageSize" type="num" value="20">
				<option value="20" selected="selected">20</option>
				<else/>
				<option value="20">20</option>
				</eq>
				<eq name="$Pager.PageSize" type="num" value="30">
				<option value="30" selected="selected">30</option>
				<else/>
				<option value="30">30</option>
				</eq>
				<eq name="$Pager.PageSize" type="num" value="50">
				<option value="50" selected="selected">50</option>
				<else/>
				<option value="50">50</option>
				</eq>
				<eq name="$Pager.PageSize" type="num" value="100">
				<option value="100" selected="selected">100</option>
				<else/>
				<option value="100">100</option>
				</eq>
			</select>
			<span>条，共{$Pager.Recordcount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$Pager.Recordcount}" numPerPage="{$Pager.PageSize}" pageNumShown="10" currentPage="{$Pager.PageNow}"></div>
	</div>
</div>